package com.g12.back.basic.parameter;

import io.swagger.annotations.ApiModelProperty;
import io.swagger.annotations.ApiOperation;
import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

import java.util.ArrayList;
import java.util.List;


/**
 * @author gefangjie
 */
@ApiOperation(value = "验证码接口配置")
@Data
@Configuration
// @ConfigurationProperties(prefix = "intercept")表示将配置文件中的intercept前缀的配置注入到该类中
@ConfigurationProperties(prefix = "intercept")
public class CaptchaProperties {

    // 这个静态变量的作用是：当类的实例被序列化时，序列化器会验证这个序列号是否与类的实际序列号匹配，如果不匹配，序列化失败
    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "需要图片验证码验证的接口")
    private List<String> verification = new ArrayList<>();

    @ApiModelProperty(value = "需要企微验证码验证的接口")
    private List<String> wechat = new ArrayList<>();
}
